package com.headingdata.type;

public class TypeConversionDemo1 {
    public static void main(String[] args) {
        int a = 20;
        byte b = (byte) a; //alt+enter  强制类型转换
        System.out.println(a);
        System.out.println(b);

        int c = 35000;
        byte d = (byte) c;
        System.out.println(c);
        System.out.println(d);

        double e = 98.25;
        int f = (int) e;
        System.out.println(e);
        System.out.println(f);

    }
}
